<template>
  <el-menu :default-openeds="['1', '3']" style="min-height: 100%; overflow-x: hidden"
           background-color="rgb(118, 215, 234)"
           text-color="#fff"
           active-text-color="#39C5BB"
           :collapse-transition="false"
           :collapse="isCollapse"
           router
  >
    <div style="height: 60px; line-height: 60px; text-align: center">
      <img src="../assets/logo.png" alt="" style="width: 20px; position: relative; top: 5px; right: 5px">
      <b style="color: white" v-show="logoTextShow">物联网小车</b>
    </div>
    <el-menu-item index="/carMove">
      <template slot="title">
        <i class="el-icon-link"></i>
        <span slot="title">车辆控制</span>
      </template>
    </el-menu-item>
<!--    <el-menu-item index="/data">-->
<!--      <template slot="title">-->
<!--        <i class="el-icon-notebook-2"></i>-->
<!--        <span slot="title">空气污染数据</span>-->
<!--      </template>-->
<!--    </el-menu-item>-->
<!--    -->
    <el-submenu index="">
      <template slot="title">
        <i class="el-icon-setting"></i>
        <span slot="title">传感器数据</span>
      </template>
      <el-menu-item-group>
        <el-menu-item index="temperature">温度</el-menu-item>
        <el-menu-item index="humidity">湿度</el-menu-item>
        <el-menu-item index="weather">天气</el-menu-item>
        <el-menu-item index="noise">噪声</el-menu-item>
      </el-menu-item-group>
    </el-submenu>

  </el-menu>
</template>

<script>
export default {
  name: "Aside",
  props: {
    isCollapse: Boolean,
    logoTextShow: Boolean
  }
}
</script>

<style scoped>

</style>